package org.example.zookeeper.test;

import org.example.zookeeper.config.DriverType;

public class ZookeeperTesterFactory {
    public static ZookeeperTester createTester(DriverType driverType) {
        switch (driverType) {
            case CURATOR:
                return new CuratorTester();
            case ZK_CLIENT:
                return new ZkClientTester();
        }
        throw new RuntimeException("not supported " + driverType);
    }
}
